package com.whuan.student.convert;

import com.whuan.student.dataObject.Student;

import java.util.List;

public class Object2Student {

    public static Student getByObject(Object object){
        Student student = new Student();
        Object[] objects = (Object[]) object;
        student.setStudentId(String.valueOf(objects[0]));
        student.setStudentName(String.valueOf(objects[1]));
        student.setStudentPassword(String.valueOf(objects[2]));
        return student;
    }

}
